Skip to content

Explore performance optimizations #3186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Explore performance optimizations #3186

wants to merge 3 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Oct 24, 2024

Closes #3185

@mp911de mp911de added the type: enhancement A general enhancement label Oct 24, 2024
@@ -70,7 +74,7 @@ public class ClassTypeInformation<S> extends TypeDiscoverer<S> {
*/
@Deprecated
public static <S> ClassTypeInformation<S> from(Class<S> type) {
return from(ResolvableType.forClass(type));
return from(resolvableTypeCache.get(type));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 - I just realised the ResolvableType internal cache does not cover this part.

@mp911de mp911de added this to the 3.3.6 (2024.0.6) milestone Oct 29, 2024
mp911de and others added 3 commits October 30, 2024 13:43
Try to be as close to the previous implementation but still benefit from the non locking read operation.
christophstrobl pushed a commit that referenced this pull request Oct 31, 2024
Closes: #3185
Original Pull Request: #3186
christophstrobl added a commit that referenced this pull request Oct 31, 2024
Use double checked locking to be as close to the previous implementation but still benefit from the fast read operation.

Original Pull Request: #3186
@christophstrobl christophstrobl deleted the issue/3185 branch October 31, 2024 07:48
@mp911de mp911de self-assigned this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisit internal caching arrangements
2 participants